<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 商店管理</li>
        </ul>
    </div>
    <div id="rightside" >
        <div class="contentcontainer">
            <div class="headings altheading">
           		 <h3><span class="nav_left">{$goods_name}商店</span></h3>
		   </div>
               		<div class="paper-head">
					<div>
						<span class="nav_right"><a href="#add{$goods}" role="button" class="btn btn-primary btn-middle" data-toggle="modal">添加</a></span>
						<div id="add{$goods}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_add{$goods}" aria-hidden="true" style="width:443px">
							<form action="shop.php" method="get">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
								<h3 id="myModalLabel_add{$goods}">添加{$goods_name}</h3>
							</div>
							<div class="modal-body nav-category" style="max-height:800px;">
								<div class="input-prepend">
									<span class="add-on">id号</span>
									<input class="span4" id="prependedInput" type="text" placeholder="id" name="id">
								</div>
								<div class="input-prepend">
									<span class="add-on">皮肤</span>
									<input class="span4" id="prependedInput" type="text" placeholder="pid" name="pid">
								</div>
								<div class="input-prepend">
									<span class="add-on">分类</span>
									<select name="status" class="span4" >
										<option value="0">上架</option>
										<option value="1">下架</option>
									</select>
								</div>
								<div class="input-prepend">
									<span class="add-on">平台</span>
									<select name="platform" class="span2" >
										<option value="pinkdiaryandroid" >安卓</option>
										<option value="pinkdiaryios" >IOS</option>
										<option value="pinkdiaryproios" >IOS专业版</option>
									</select>
								</div>
								<div class="input-prepend">
									<span class="add-on">min</span>
									<input class="span2" id="prependedInput" type="text" placeholder="支持的最小版本号" name="min_version" >
								</div>
								<div class="input-prepend">
									<span class="add-on">max</span>
									<input class="span4" id="prependedInput" type="text" placeholder="支持的最大版本号" name="max_version">
								</div>
								<div class="input-prepend">
									<span class="add-on">大小</span>
									<input class="span4" id="prependedInput" type="text" placeholder="包大小" name="zip_size">
								</div>
								<div class="input-prepend">
									<span class="add-on">链接</span>
									<input class="span4" id="prependedInput" type="text" placeholder="包地址" name="zip_url">
								</div>
						   </div>
						   <div class="modal-footer">
						   		<input type="hidden" name="ac" value="shopzip"/>
						   		<input type="hidden" name="op" value="add{$goods}"/>
							    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
							    <button type="submit" class="btn btn-primary">添加</button>
						   </div>
						   </form>
						</div>
					</div>
				</div>
				<table class="table table-striped">
					<tr>
						<th>id</th>
						<th>对应皮肤id</th>
						<th>平台</th>
						<th>最低版本号</th>
						<th>最高版本号</th>
						<th>下载链接</th>
						<th>编辑</th>
					</tr>
					<!-- {if $list} -->
					<!--{loop $list $value}-->
					<tr>
						<th>{$value[id]}</th>
						<th>{$value[pid]}</th>
						<th>{$value[platform]}</th>
						<th>{$value[min_version]}</th>
						<th>{$value[max_version]}</th>
						<th><a href="{$value[zip_url]}" target="_blank" role="button" class="btn btn-primary btn-middle">下载</a></th>
						<th><a href="shop.php?ac=shopzip&op=get{$goods}Detail&id={$value[id]}"  role="button" class="btn btn-primary btn-middle" >编辑</a></th>
					<tr>
					<!--{/loop}-->
					<!-- {/if} -->
				</table>
         
        </div>
    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->
   
    <script type="text/javascript">

	</script>